package xyz.showbooks.mapper;

import org.springframework.transaction.annotation.Transactional;
import xyz.dfm.util.UtilPagePojo;
import xyz.dfm.pojo.Comment;


import java.util.List;

/**
 * @author: Dsi
 * @date: 2022/2/18 18:51
 * @description:
 */
public interface CommentMapper {
    List<Comment> findCommentByUserName(UtilPagePojo utilPagePojo);

    @Transactional
    int updateStatus(Comment comment);

    List<Comment> findCommentByStatus(UtilPagePojo utilPagePojo);

    List<Comment> findCommentByBooksName(UtilPagePojo utilPagePojo);
}
